package com.easylinkin.linkappapi.config.constant;

/**
 * 给出 常用配置的模板
 *
 * @author tongjie
 */
public enum ConfigConstant {


    /**
     * 劳务管理的摄像头配置
     * <p>
     * "key": "LABOUR_BIG_SCREEN_VEDIO_CODE",
     * "moduleLevel": "劳务管理:大屏摄像头",
     * "describe": "劳务大屏摄像头设备编号",
     * "example": "C91042373-21"
     */
    LABOUR_BIG_SCREEN_VEDIO_CODE("LABOUR_BIG_SCREEN_VEDIO_CODE", "劳务管理:大屏摄像头", "劳务大屏摄像头设备编号", "C91042373-21");

    private final String key;
    private final String moduleLevel;
    private final String describe;
    private final String example;

    ConfigConstant(String key, String moduleLevel, String describe, String example) {
        this.key = key;
        this.moduleLevel = moduleLevel;
        this.describe = describe;
        this.example = example;
    }

    public String getKey() {
        return key;
    }

    public String getModuleLevel() {
        return moduleLevel;
    }

    public String getDescribe() {
        return describe;
    }

    public String getExample() {
        return example;
    }

    public static ConfigConstant getByKey(String key) {
        ConfigConstant[] list = ConfigConstant.values();
        for (ConfigConstant configConstant : list) {
            if (configConstant.getKey().equals(key)) {
                return configConstant;
            }
        }
        return null;
    }


}
